package com.yl.chainStore.mapper.pay;

import com.yl.chainStore.entity.pay.SysCompanyPayItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.pojo.vo.pay.SystemCompanyPayItemSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-07-05
 */
@Mapper
interface SysCompanyPayItemMapper : BaseMapper<SysCompanyPayItem>{

	/**
	 * 分页查询(系统查询用)
	 */
	fun selectItemPage(@Param("page")page: Page<SysCompanyPayItem>,
	                   @Param("vo")vo: SystemCompanyPayItemSelectVo,
	                   @Param("typeId")typeId: Long?):Page<SysCompanyPayItem>

	fun deptSelectItemPage(
		@Param("page")page: Page<SysCompanyPayItem>,
		@Param("vo")vo: SystemCompanyPayItemSelectVo,
		@Param("typeId")typeId: Long?,
		@Param("deptId")deptId:Long
	):Page<SysCompanyPayItem>

	fun deptSelectItemList(
		@Param("vo")vo: SystemCompanyPayItemSelectVo,
		@Param("typeId")typeId: Long?,
		@Param("deptId")deptId:Long
	):List<SysCompanyPayItem>
}
